package jetbrains.buildServer.cuta.logic;

import org.jetbrains.annotations.NotNull;



/**
 * @author Leonid Bushuev from JetBrains
 */

public class CutaSubTab
{

    @NotNull
    final String name;

    @NotNull
    private PageDef page;


    public CutaSubTab(@NotNull String name, @NotNull PageDef page)
    {
        this.name = name;
        this.page = page;
    }


    @NotNull
    public String getId()
    {
        return page.id;
    }


    /**
     * Tab name (what will be shown on the sub tab).
     * @return the tab name.
     */
    @NotNull
    public String getName()
    {
        return name;
    }


    @NotNull
    public PageDef getPage()
    {
        return page;
    }

}
